package cn.hznc.repository;

import cn.hznc.domain.entity.OrderEntity;
import cn.hznc.domain.entity.SubProgramEntity;
import cn.hznc.domain.request.process.UnmetToolReqReload;
import cn.hznc.domain.request.schedule.UnmetToolReq;
import cn.hznc.vo.SubProgramParamVo;
import cn.hznc.vo.ToolDemandPredictionParamVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author：Administrator
 * @Date：2023/4/22 17:17
 */
public interface OrderRespository{
    List<ToolDemandPredictionParamVo> getToolDemandPredictionList(List<Integer> idList);
    List<ToolDemandPredictionParamVo> getToolDemandPredictionList1(List<Integer> idList);


    void updateByTaskid(@Param("craftParam") String craftParam ,@Param("id") Integer id);

    Integer findByTaskid(@Param("taskId") String taskId);

    Integer getIdByTaskId(@Param("taskId")String s);

    List<OrderEntity> selectByTaskIdList(List<String> taskIds);

    List<String> selectByCondition(UnmetToolReq unmetToolReq);
    List<String> selectByConditionReload(UnmetToolReqReload unmetToolReqReload);

    List<String> selectByTaskId(@Param("taskId") String taskId);

    List<SubProgramParamVo> selectProgram(@Param("taskId") String taskId, @Param("seq") Integer seq);

    String selectConnectProgramCode(@Param("taskId") String taskId,@Param("seq") Integer seq);

    String selectCraftParamVo(@Param("taskId") String taskId,@Param("seq") Integer seq);

    String selectMaterialNoByTaskId(@Param("taskId") String orderTaskId);
}
